const rules = {
    account: { notBlank: true, msg: '账号必填' },
    staffIdList: { notEmptyList: true, msg: `${text}人员必填` },
}

//校验表单
jsonUtil.validForm(form.value, rules, () => {
    api.save(form.value).then(res => {
        tool().notify.success('保存成功')
        emit("reload")
        dialogVisible.value = false
    }).finally(() => {
        call()
    })
}, (err) => {
    tool().notify.error(err)
    call()
})